<template>
  <div style="margin: 0 15px">
    <svg-icon icon-class="fullscreen" style="color:#fff; width: 20px; height: 20px" @click="onClick" />
  </div>
</template>

<script>
import screenfull from 'screenfull'
export default {
  name: '',
  data() {
    return {

    }
  },

  // 定义方法
  methods: {
    onClick() {
      if (screenfull.isEnabled) {
        screenfull.toggle()
      }
    }
  }

}
</script>

<style scoped lang='less'>

</style>
